import request from '@/tools/request'

export function dictitemCreate(data) {
  return request({
    url: '/dictitem/create',
    method: 'post',
    data
  })
}

export function dictitemFindAll(data) {
  return request({
    url: '/dictitem/findAll',
    method: 'post',
    data,
    loading: false
  })
}

export function dictitemFindOne(data) {
  return request({
    url: '/dictitem/findOne',
    method: 'post',
    data
  })
}

export function dictitemUpdate(data) {
  return request({
    url: '/dictitem/update',
    method: 'post',
    data
  })
}

export function dictitemRemove(data) {
  return request({
    url: '/dictitem/remove',
    method: 'post',
    data
  })
}

export function dictitemRemoveBatch(data) {
  return request({
    url: '/dictitem/removeBatch',
    method: 'post',
    data
  })
}

export function dictitemCreateBatch(data) {
  return request({
    url: '/dictitem/createBatch',
    method: 'post',
    data
  })
}
